﻿using Nancy;
using Nancy.Routing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NancyWeb
{
    public class MainModule : NancyModule
    {
        public MainModule(IRouteCacheProvider routeCacheProvider)
        {
            Get["/"] = parameters =>
            {
                var a = parameters;
                return View["hello", this.Request.Url];
            };

            Post["/"] = x =>
            {

                return View["hello", "qunimei"];
            };
        }
    }
}